
public class DemoParts {

	public static void main(String[] args)
	{
		AccessoryPart acp = new AccessoryPart(1234, "krushka", 10, "Gabrovo Parts");
		AccessoryPart acp1 = new AccessoryPart(4321, "Aromatizator", 5, "Borche");
		EnginePart enp = new EnginePart(2233, "rolka", 80, "Parts Parts");
		EnginePart enp1 = new EnginePart(9922, "klapan", 80, "China Parts");
		
		Car nissan = new Car("Nissan", "Primera", 2002);
		Car audi = new Car("Audi", "A4", 2002);
		
		acp.addCar(nissan);
		acp.addCar(audi);
		acp1.addCar(audi);
		acp1.addCar(nissan);
		enp.addCar(audi);
		enp1.addCar(nissan);
		
		//acp.partInfo();
		
		//acp.searchPartsByCar("nissan");
		
		//nissan.printCarInfo();


	}

}
